package com.allegroerp.controller;

import com.allegroerp.service.TestuserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;

@RestController
@RequestMapping("/testBoot")
public class UserController {

    @Autowired
    private TestuserService testuserService;

    @RequestMapping("getuser/{id}")
    public String GetUser(@PathVariable int id){
        return testuserService.Sel(id).toString();
    }

}
